package com.mida.app.report.controller;


import com.mida.app.report.process.DocReportListProcess;
import com.mida.app.report.vo.DocReportListPageVo;
import com.mida.app.report.vo.DocReportListVo;
import com.mida.app.report.vo.PageResultVo;
import com.mida.tool.common.result.ListResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


/**
 * 报告list控制层
 */
@RestController
@RequestMapping("/reportList")
@Slf4j
@CrossOrigin
public class DocReportListController {

    @Autowired
    private DocReportListProcess reportListService;

    /**
     * 根据参数的不同调用登记号，检查号，申请单号接口
     *
     * @param
     * @return
     */

    @PostMapping(value = "/transferInterfaceByParameter", produces = {"application/json;charset=UTF-8"})
    public ListResult<PageResultVo<DocReportListVo>>  transferInterfaceByParameter(@RequestBody DocReportListPageVo vo,HttpServletRequest request) throws Exception {
        return reportListService.transferInterfaceByParameter(vo);
    }


}
